/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const tableRouter = {
  path: '/userControl',
  name: 'Usercontrol',
  component: Layout,
  meta: {
    title: '用户管理',
    icon: 'form'
  },
  children: [
    {
      path: '/departmentMation',
      name: 'DepartmentMation',
      component: () => import('@/views/userControl/department-mation/index'),
      // hidden: true,
      meta: {
        title: '部门管理',
        icon: 'form'
      }
    },
    {
      path: '/usercontrol',
      name: 'UserControl',
      component: () => import('@/views/userControl/user-control/index'),
      meta: {
        title: '用户管理',
        icon: 'form'
      }
    },
    {
      path: '/logcontrol',
      name: 'LogControl',
      component: () => import('@/views/logcontrol/index'),
      meta: {
        title: '日志查看',
        icon: 'form'
      }
    },
    {
      path: '/roleMation',
      name: 'RoleMation',
      component: () => import('@/views/userControl/role-mation/index'),
      // hidden: true,
      meta: {
        title: '角色管理',
        icon: 'form'
      }
    },
    {
      path: '/management',
      name: 'RoleMation',
      component: () => import('@/views/userControl/management/index'),
      // hidden: true,
      meta: {
        title: '岗位管理',
        icon: 'form'
      }
    }
  ]
}
export default tableRouter
